github.com/go-pg/pg/v10/orm.join.Rel (field)
34 uses
github.com/go-pg/pg/v10/orm (current package)
join.go#L14: Rel *Relation
join.go#L26: switch j.Rel.Type {
join.go#L67: if len(j.Rel.JoinFKs) > 1 {
join.go#L70: where = appendColumns(where, j.JoinModel.Table().Alias, j.Rel.JoinFKs)
join.go#L71: if len(j.Rel.JoinFKs) > 1 {
join.go#L76: where, j.JoinModel.Root(), j.JoinModel.ParentIndex(), j.Rel.BaseFKs)
join.go#L80: if j.Rel.Polymorphic != nil {
join.go#L82: j.Rel.Polymorphic.Column,
join.go#L125: join = fmter.FormatQuery(join, string(j.Rel.M2MTableName))
join.go#L127: join = append(join, j.Rel.M2MTableAlias...)
join.go#L129: for i, col := range j.Rel.M2MBaseFKs {
join.go#L133: join = append(join, j.Rel.M2MTableAlias...)
join.go#L143: for i, col := range j.Rel.M2MJoinFKs {
join.go#L147: j.Rel.M2MTableAlias, types.Ident(col))
join.go#L155: switch j.Parent.Rel.Type {
join.go#L205: b = append(b, j.Rel.Field.SQLName...)
join.go#L252: if len(j.Rel.BaseFKs) > 1 {
join.go#L255: for i, baseFK := range j.Rel.BaseFKs {
join.go#L261: b = append(b, j.Rel.JoinFKs[i].Column...)
join.go#L267: if len(j.Rel.BaseFKs) > 1 {
join.go#L299: if q.Rel.M2MTableAlias != "" {
join.go#L300: b = append(b, q.Rel.M2MTableAlias...)
model_table_m2m.go#L33: rel: j.Rel,
model_table_many.go#L22: dstValues := dstValues(joinModel, j.Rel.BaseFKs)
model_table_many.go#L29: rel: j.Rel,
model_table_struct.go#L147: switch j.Rel.Type {
model_table_struct.go#L189: switch j.Rel.Type {
model_table_struct.go#L304: if j.Rel.Field.GoName == name || j.Rel.Field.SQLName == name {
model_table_struct.go#L344: currJoin.Rel = rel
query.go#L427: switch join.Rel.Type {
query.go#L986: switch j.Rel.Type {
query.go#L1006: if j.Rel.Type == HasOneRelation || j.Rel.Type == BelongsToRelation {